package com.awesome.uidemo.customview.customview.slide;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.transition.Slide;
import android.view.View;

import com.awesome.common.util.ToastUtils;
import com.awesome.common.util.log.ShowLogUtil;
import com.awesome.uidemo.R;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2022/3/22 10:57 下午
 * Description：测试滑块
 */
public class SlideActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_slide);
        SlideView slideView = findViewById(R.id.slide_view);
        slideView.setOnScrollListener(new SlideView.OnScrollListener() {
            @Override
            public void onScrollChange(int offsetRawY) {
                ShowLogUtil.info("offsetRawY="+offsetRawY);
            }
        });
        findViewById(R.id.btn_click).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtils.showToast(SlideActivity.this,"123");
            }
        });
    }
}